import { uni_type_dataMana } from './cla_uni_type_dataMana';
import type { uni_type_props } from './cla_uni_type_props';
import { forBindEventThis } from '@/components/global_comps';
import { self_event_click_me } from '@/components/global_comps/Classes/listenEvent_mana/Types';

const uni_type_operateTag = 'uni_type_operate';

export class uni_type_operate extends uni_type_dataMana {
  get [Symbol.toStringTag]() {
    return uni_type_operateTag;
  }

  constructor(props: uni_type_props) {
    super(props);

    forBindEventThis(this);

    this.eventM.addEventListen(
      this.dom_border,
      self_event_click_me,
      this.eventBind.border_self_event_click_me
    );
  }

  /**
   * 左键点击
   *
   * 添加 或 取消 使用 当前标签信息
   */
  border_self_event_click_me() {
    this.remove_or_use_cur_type();
  }
}
